FROM bellsoft/liberica-openjre-alpine:latest
# 设置时区为上海
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata

WORKDIR /app
ADD wechat-bot.jar wechat-bot.jar
VOLUME /app
RUN pwd

ENTRYPOINT ["java", "-jar", "/app/wechat-bot.jar"]